package com.niiwoo.civet.account.dto.common;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

@Getter
@Setter
public class UserAccountInfoDTO implements Serializable{
    private static final long serialVersionUID = -8787755669427227672L;
    /**
     * 投资账号(account_base主键)
     */
    private Long accountIdInvestor;
    /**
     * 借款账号(account_base主键)
     */
    private Long accountIdBorrower;
    /**
     * 担保账号(account_base主键)
     */
    private Long accountIdGuarantee;

    /**
     * 投资账号
     */
    private String accountNoInvestor;

    /**
     * 投资账号
     * 99未开通 0未激活，1激活
     */
    private Byte investorActive = 99;

    /**
     * 投资账号
     * 99未开通 0未激活，1已激活
     */
    private Byte borrowerActive = 99;

    /**
     * 担保账号
     * 99未开通 0未激活，1已激活
     */
    private Byte guaranteeActive = 99;
    /**
     * 借款账号
     */
    private String accountNoBorrower;


    /**
     * 担保账号
     */
    private String accountNoGuarantee;

    /**
     * 投资账号余额
     */
    private BigDecimal balanceAmountInvestor=BigDecimal.ZERO;

    /**
     * 借款账号余额
     */
    private BigDecimal balanceAmountBorrower=BigDecimal.ZERO;

    /**
     * 担保账号余额
     */
    private BigDecimal balanceAmountGuarantee=BigDecimal.ZERO;

    /**
     * 用户总余额
     */
    private BigDecimal balanceAmountTotal=BigDecimal.ZERO;

    private Byte isFreeInvest = 0 ;

    public BigDecimal getBalanceAmountTotal(){
        return this.balanceAmountInvestor.add(this.balanceAmountBorrower).add(this.balanceAmountGuarantee);
    }



}